Tack.Action.SetState = new Class({
	Extends: Tack.Action,

	args: { state: 'text', bit: ['On', 'Off'] },
	type: 'SetState',

	initialize: function (state, bit) {
		this.state = state;
		this.bit = bit;
	},

	execute: function (player) {
		player.state.set(this.state, (this.bit == 'On'));
	}
});
